﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using pttk_htt_hr.DAO;
using pttk_htt_hr.DTO;

namespace pttk_htt_hr.DAO
{
    class PhieuLapThucDonTuanToiBUS
    {
        #region Select
        /// <summary>
        /// Lay_PhieuLapThucDonTuanToi
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns>PhieuLapThucDonTuanToiDTO</returns>
        public static PhieuLapThucDonTuanToiDTO Lay_PhieuLapThucDonTuanToi(List<SqlParameter> parameters)
        {
            return PhieuLapThucDonTuanToiDAO.Lay_PhieuLapThucDonTuanToi(parameters);
        }

        public static List<Dictionary<string, string>> Get_List(List<SqlParameter> parameters, bool hasConds)
        {
            return PhieuLapThucDonTuanToiDAO.Get_List(parameters, hasConds);
        }
        #endregion

        #region Insert
        /// <summary>
        /// Them_PhieuLapThucDonToi
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns>int</returns>
        public static int Them_PhieuLapThucDonToi(List<SqlParameter> parameters)
        {
            return PhieuLapThucDonTuanToiDAO.Them_PhieuLapThucDonToi(parameters);
        }
        #endregion


        #region Update
        public static int CapNhat_PhieuLapThucDonToi(List<SqlParameter> parameters)
        {
            return PhieuLapThucDonTuanToiDAO.CapNhat_PhieuLapThucDonToi(parameters);
        }
        #endregion

        #region Delete
        /// <summary>
        /// Delete_PhieuLapThucDonToi
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns>int</returns>
        public static int Delete_PhieuLapThucDonToi(List<SqlParameter> parameters)
        {
            return PhieuLapThucDonTuanToiDAO.Delete_PhieuLapThucDonToi(parameters);
        }

        public static int DeleteAll_PhieuLapThucDonToi(List<List<SqlParameter>> parameters)
        {
            return PhieuLapThucDonTuanToiDAO.DeleteAll_PhieuLapThucDonToi(parameters);
        }
        #endregion
        
    }
}
